<?php 

include "konek.php";

	$nama = $_POST['name'];  
	$username = $_POST['username'];    
	$pass = $_POST['password']; 
	$email = $_POST['email'];   
	$telp = $_POST['telpon'];  
	$alamat = $_POST['alamat'];
	$deskripsi = $_POST['deskripsi'];

 
$query = "update account_technopreneur set NAMA='$nama',  USERNAME='$username', PASSWORD='$pass', EMAIL_TECHNOPRENEUR='$email', 
	NO_TELP='$telp', ALAMAT='$alamat', DESKRIPSI_TECHNOPRENEUR='$deskripsi' where USERNAME='$username'" . mysql_error();  
$hasil = mysql_query($query);  
if($hasil){  
 header('Location:view/profil_technopreneur.php?message=success');
}else{  
 header('Location:view/edit_profil.php?message=warning');
}  
?>  